import java.util.Observable;

/*
 * ****************************
 * Eric Doherty
 * Jesse Kinney
 * 
 * TCSS 422 Scheduler simulator
 * Memory Location Class
 * 
 * 6/4/08
 * ****************************
 */

public class MemoryLocation extends Observable
{
  private int memoryLocation;

  private boolean full;

  private boolean empty;

  private boolean crit;

  public MemoryLocation()
  {
    memoryLocation = 0;
    full = false;
    empty = true;
    crit = true;
  }

  public boolean getFull()
  {
    return full;
  }

  public boolean getEmpty()
  {
    return empty;
  }

  public void setFull(boolean full)
  {
    this.full = full;
  }

  public void setEmpty(boolean empty)
  {
    this.empty = empty;
  }

  public void setCrit(boolean crit)
  {
    this.crit = crit;
  }

  public boolean getCrit()
  {
    return crit;
  }

  public void setMemoryLocation(int val)
  {
    memoryLocation = val;
  }

  public int getData()
  {
    return memoryLocation;
  }
}
